package com.ws.module.test02;

import com.ws.entity.test02.Car;

import java.util.Scanner;

/**
 * @author 王硕
 * @version jdk21
 * @className CarMoudle
 * @description
 * @date 2024/11/5 19:16
 */
public class CarMoudle {
    Scanner scanner = new Scanner(System.in);
    public Car inputCarStats(){
        System.out.println("请输入车的轮胎数");
        int inputwheel = scanner.nextInt();
        System.out.println("请输入车的颜色");
        String inputcolour = scanner.next();
        System.out.println("请输入车的种类");
        String inputtype = scanner.next();
        System.out.println("请输入车的价格");
        double inputprice = scanner.nextDouble();
        return new Car(inputwheel, inputcolour, inputtype,inputprice);
    }
}
